﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;

public partial class Admin_shop_User_Detail : AdminBase
{
    public string guid = "0", result, result1, sum1, sum2, sum3, myUname;
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.CacheControl = "no-cache";
        if (!string.IsNullOrEmpty(Request.Params["Guid"]))
        {
            guid = HttpContext.Current.Request.QueryString["Guid"];
        }
        if (!IsPostBack)
        {
            grbind();
        }
    }

    private void grbind()
    {
        Entities MyDB = new Entities();
        var userOne = MyDB.User.Where(x => x.UIndirectParentId == guid).OrderByDescending(x => x.UID);//一级
        sum1 = userOne.Count().ToString();
        Repeater1.DataSource = userOne.ToList();//通过我的ID绑定数据显示我收藏的名片
        Repeater1.DataBind();


    }
}